/* eslint-disable react/jsx-pascal-case */
import React from "react";
import Tab from '@/components/common/Tab'

const Index = () => {
    // 获取cookie
    let LoginUser = React.$cookie.load('LoginUser')
    // 生命周期
    React.useEffect(() => {
        OrderList()
        // eslint-disable-next-line react-hooks/exhaustive-deps
    }, [])
    const OrderList= async () =>{
        let result=await React.$api.OrderList({userid:LoginUser.id})
        console.log(result);
    }
    return (
        <>
            <React.$vant.ProductCard
                num="2"
                price="2.00"
                desc="描述信息"
                title="商品名称"
                thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
            />

            <Tab />
        </>
    )
}

export default Index